<#if pg??>${pg.countHtml!}</#if>
<table class="list">
  <tr>
    <th width="4%">序号</th>
    <th width="7%">门店名称</th>
    <th width="7%">会员姓名</th>
    <th width="7%">教练</th>
    <th width="7%">合同编号</th>
    <th width="6%">销售类型</th>
    <th width="7%">购买日期</th>
    <th width="7%">截止日期</th>
    <th width="6%">购买金额</th>
    <th width="5%">购买课时</th>
    <th width="5%">上月结余</th>
    <th width="5%">本月新购</th>
    <th width="5%">本月消耗</th>
    <th width="5%">转出课时</th>
    <th width="5%">本月剩余</th>
    <th width="6%">课时单价</th>
    <th width="6%">合同状态</th>
    <th width="6%">上次上课</th>
  </tr>
  <#if list??><#list list as c>
  <tr<#if c_index%2==1> class="line2"<#else> class="line1"</#if>>
    <td class="no">${c_index+1}</td>
    <td><@value type="shopName" key="${c.shopCode!}"/></td>
    <td><a href="javascript:mbinfo('${c.memberCode!}');">${c.memberName!}</a></td>
    <td><@value type="ptCoachName" key="${c.coachCode!}"/></td>
    <td>${c.contractCode!}</td>
    <td><@value type="ptSaleType" key="${c.saleType!}"/></td>
    <td>${c.saleDate!}</td>
    <td>${c.endTime!}</td>
    <td class="money">${c.factPrice!}</td>
    <td>${c.quantity!}</td>
    <td>${c.quantity-c.quantity3-c.quantity1}</td>
    <td>${c.quantity3!}</td>
    <td>${c.quantity2!}</td>
    <td>${c.quantity4!}</td>
    <td>${c.quantity-c.quantity1-c.quantity2-c.quantity4}</td>
    <td><#if c.quantity!=0>${c.factPrice/c.quantity}</#if></td>
    <td><#if c.status=1>正常<#else>已过期</#if></td>
    <td>${c.classTime!}</td>
  </tr>
  </#list></#if>
</table>
<#if pg??>${pg.pageHtml!}</#if>
